package com.bit.log.Controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2025-11-24
 * Time: 17:23
 */

@RequestMapping("/log")
@RestController
public class LogController {

    private Logger logger = LoggerFactory.getLogger(LogController.class);


    @RequestMapping("/print")
    public void print(){
        logger.info("打印日志");
        logger.info("logger info");
        logger.trace("logger trace");
        logger.debug("logger debug");
        logger.warn("logger warn");
        logger.error("logger error");
//        return "打印日志";
    }
}
